package com.yudean.esb.dao.sys;

import com.yudean.esb.mapper.sys.SysAppUserMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

@Repository
@Scope("prototype")
public class SysAppUserDao {
    @Resource
    private SysAppUserMapper sysAppUserMapper;

    public boolean hasPermit(String compCode,String userCode,String password){
        return sysAppUserMapper.hasPermit(compCode,userCode,password).size()>0;
    }
}
